﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using MAF.Common;

namespace MAF
{
    /// <summary>
    /// 查询条件集合
    /// </summary>
    public interface IQuery
    {
        /// <summary>
        /// 增加查询条件
        /// </summary>
        /// <param name="q"></param>
        void Add(IQuery q);

        /// <summary>
        /// 条件是否匹配
        /// </summary>
        /// <param name="o"></param>
        /// <returns></returns>
        bool IsMatch(object o);
    }
}
